﻿using System;
using Sherwood.Content;
using Sherwood.Content.DO.Model;
using Xtensive.Storage;
using Record = Sherwood.Content.DO.Model.Record;

namespace Sherwood.Samples.ArticleMeta
{
    [Serializable]
    public class ArticleMeta : Meta
    {
        public ArticleMeta()
        {
        }

        public ArticleMeta(Record record, Client source)
            : this(record, source, null)
        {
        }

        public ArticleMeta(Record record, Client source, string usageKey)
            : base(record, source, usageKey)
        {
        }

        [Field]
        public DateTime? PublishDate { get; set; }

        [Field]
        public string Author { get; set; }

        [Field]
        public string Body { get; set; }

        [Field]
        public string Html { get; set; }
    }
}
